// import com.alibaba.druid.sql.ast.SQLName;
// import com.alibaba.druid.sql.ast.SQLStatementImpl;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLShowRoleStatement.h"
#include "../../visitor/SQLASTVisitor.h"
#include "../SQLName.h"

// @Override
void SQLShowRoleStatement::accept0(SQLASTVisitor_ptr visitor)
{
    if (visitor->visit(SharedObject(SQLShowRoleStatement)))
    {
        acceptChild(visitor, grant);
    }
    visitor->endVisit(SharedObject(SQLShowRoleStatement));
}

SQLName_ptr SQLShowRoleStatement::getGrant()
{
    return grant;
}

void SQLShowRoleStatement::setGrant(SQLName_ptr x)
{
    if (x != nullptr)
    {
        x->setParent(SharedObject(SQLShowRoleStatement));
    }
    this->grant = x;
}
